<?php
defined('DT_ADMIN') or exit('Access Denied');
include tpl('header');
show_menu($menus);
?>
<form action="?">
<div class="tt">用户搜索</div>
<input type="hidden" name="moduleid" value="<?php echo $moduleid;?>"/>
<input type="hidden" name="file" value="<?php echo $file;?>"/>
<input type="hidden" name="action" value="<?php echo $action;?>"/>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td>&nbsp;
<?php echo $fields_select;?>&nbsp;
<select name="pushstatus">
<option value="">推送状态</option>
<option value="1" <?php if($pushstatus==1){echo "selected";}?> >冻结</option>
<option value="2" <?php if($pushstatus==2){echo "selected";}?> >试用到期</option>
<option value="3" <?php if($pushstatus==3){echo "selected";}?> >试用中</option>
<option value="4" <?php if($pushstatus==4){echo "selected";}?> >长期推送</option>
<option value="5" <?php if($pushstatus==5){echo "selected";}?> >关注未推送</option>
</select>&nbsp;
<input type="text" size="30" name="kw" value="<?php echo $kw;?>" title="关键词"/>&nbsp;
<input type="submit" value="搜 索" class="btn" onclick="Dd('export').value=0;"/>&nbsp;
<input type="button" value="重 置" class="btn" onclick="Go('?moduleid=<?php echo $moduleid;?>&file=<?php echo $file;?>&action=<?php echo $action;?>');"/>
</td>
</tr>
</table>
</form>
<div class="tt">用户列表</div>
<form method="post">
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<th width="25"><input type="checkbox" onclick="checkall(this.form);"/></th>
<th width="100">公司名称</th>
<th width="100">邮箱</th>
<th width="100">联系人</th>
<th width="100">手机号</th>
<th width="100">备注</th>
<th width="100">服务区域</th>
<th width="90">行业分类</th>
<th width="90">招标分类</th>
<th width="130">添加时间</th>
<th width="130">试用到期时间</th>
<th width="70">推送状态</th>
<th width="50">操作</th>
</tr>
<?php foreach($lists as $k=>$v) {?>
<tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
<td><input type="checkbox" name="itemid[]" value="<?php echo $v['itemid'];?>"/></td>
<td><?php echo $v['company'];?></td>
<td><a title="<?php echo $v['email'];?>"><?php echo dsubstr($v['email'], 25, '...');?></a></td>
<td><?php echo $v['lxr'];?></td>
<td><?php echo $v['telephone'];?></td>
<td><a title="<?php echo $v['beizhu'];?>"><?php echo dsubstr($v['beizhu'], 25, '...');?></a></td>
<td><a title="<?php echo $v['aaa'];?>"><?php if($v['aaa']){echo dsubstr($v['aaa'], 25, '...');}else{echo "全部";}?></a></td>
<td><a title="<?php echo $v['bbb'];?>"><?php if($v['bbb']){echo dsubstr($v['bbb'], 25, '...');}else{echo "全部";}?></a></td>
<td><a title="<?php echo $v['ccc'];?>"><?php if($v['ccc']){echo dsubstr($v['ccc'], 25, '...');}else{echo "全部";}?></a></td>
<td class="px11"><?php echo $v['adddate'];?></td>
<td><?php if($v['pushstatus']==3){echo date("Y-m-d H:i",$v['endtime']);}else{echo "";};?></td>
<td>
<?php 
if($v['pushstatus']==3){echo "<span style='color:#009'>试用中</span>";}
if($v['pushstatus']==1){echo "<span style='color:#0F0'>冻结</span>";}
if($v['pushstatus']==2){echo "<span style='color:#F00'>试用到期</span>";}
if($v['pushstatus']==4){echo "<span style='color:#F00'>长期推送</span>";}
if($v['pushstatus']==5){echo "<span style='color:#000'>关注未推送</span>";}
?>
</td>
<td style="color:#0F0">
<a href="?moduleid=<?php echo $moduleid;?>&file=<?php echo $file;?>&action=edit&itemid=<?php echo $v['itemid'];?>"><img src="admin/image/edit.png" width="16" height="16" title="修改" alt=""/></a>&nbsp;&nbsp;
<a href="?moduleid=<?php echo $moduleid;?>&file=<?php echo $file;?>&action=delete&itemid=<?php echo $v['itemid'];?>" onclick="return _delete();"><img src="admin/image/delete.png" width="16" height="16" title="删除" alt=""/></a>
</td>
</tr>
<?php }?>
</table>
<div class="btns">
<input type="submit" value="批量删除" class="btn" onclick="if(confirm('确定要删除吗？此操作将不可撤销')){this.form.action='?moduleid=<?php echo $moduleid;?>&file=<?php echo $file;?>&action=delete'}else{return false;}"/>
</div>
</form>
<div class="pages"><?php echo $pages;?></div>
<br/>
<script type="text/javascript">Menuon(2);</script>
<?php include tpl('footer');?>